SUBDIRS = servicos
CC=gcc
CFLAGS=-w -pedantic -ggdb

all: myinetd_059878072627
	-for d in $(SUBDIRS); do (cd $$d; $(MAKE) ); done

myinetd_059878072627: confparser.o myinetd.o
	$(CC) $^ -o $@ $(CFLAGS)

confparser.o: confparser.c confparser.h myinetd.h
	$(CC) -c -o $@ $< $(CFLAGS)

myinetd.o: myinetd.c confparser.h myinetd.h
	$(CC) -c -o $@ $< $(CFLAGS)

clean:
	rm -rf *~ myinetd_059878072627 *.o *.lock *.log
	-for d in $(SUBDIRS); do (cd $$d; $(MAKE) clean ); done





